package com.tc.dao;
import com.tc.pojo.Commodity;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:admin
 * @Description:Commodity的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface CommodityMapper extends Mapper<Commodity> {

    public List<Commodity> findCommodityBypid(int pid);
    @Select("select * from commodity where id=#{id}")
    public Commodity findCommodityById(int id);
}
